/*
 * IPayModel.java
 * business
 *
 * Created by ChenTao on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.data.model;

import com.yidiandao.business.data.response.QueryPayInfoResponse;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;

import java.util.List;

/** 支付的Model */
public interface IPayModel {

    void loadPayInfo(
            String orderPayId,
            String orderId,
            String tag,
            OnAccessNetListener<QueryPayInfoResponse> listener);

    /** 加载银行转账订单信息。(从订单页面点击付款时跳转加载) */
    void loadBankTransferOrderInfo(
            String orderId, String tag, OnAccessNetListener<List<DisplayListItem>> listener);

    /** 确认付款 */
    void confirmPay(String orderId, String tag, OnConfirmPayListener listener);

    interface OnAccessNetListener<T> {

        void onSuccess(T t, boolean enable);

        void onFailed();
    }

    interface OnConfirmPayListener {

        void onSuccess();

        void onFinal();
    }
}
